import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect:'/Login'
    },
    {
      path: '/Login',
      component: () => import('../views/AdminVue.vue')
    },
    {
      path: '/MDAdd',
      component: () => import('../views/MenDian/MenDianAdd.vue')
    },
    {
      path: '/MDShow',
      component: () => import('../views/MenDian/MenDianShow.vue')
    },
    {
      path: '/MDFan',
      component: () => import('../views/MenDian/MenDianXiouGai.vue')
    },
    {
      path: '/FJShow',
      component: () => import('../views/FangJia/FangJiaShow.vue')
    },
    {
      path: '/FHAdd',
      component: () => import('../views/FangHao/FangHaoAdd.vue')
    },
    {
      path: '/FHShow',
      component: () => import('../views/FangHao/FangHaoShow.vue')
    },
  ]
})

export default router
